package
{
	import classes.OX_Application;
	import classes.model.VOData;
	import classes.model.VOIsLocal;
	
	import com.d4p.basicSetting.BasicDocument;
	
	import flash.display.LoaderInfo;
	import flash.display.Sprite;
	
	public class OX_Game extends BasicDocument
	{
		public function OX_Game()
		{
			defaultSiteSet(36, DEFAULT_NOSCALE, '*', false, HIGH_QUALITY);
			
			this.isLocal = (stage.loaderInfo.url);
			VOIsLocal.getLocalInstance().isLocal = this.isLocal;
			
			//flashVars.
			var param:Object 	= LoaderInfo(stage.root.loaderInfo).parameters;
			VOData.getDataInstance().mod 	= Number(param['mod']);
			
			if(VOIsLocal.getLocalInstance().isLocal == "FILE"){
				VOData.getDataInstance().mod  = 1;
			}

			startApplication();
		}
		
		private function startApplication():void
		{
			var facade:OX_Application = OX_Application.getInstance();
			facade.startup( stage );
			
		}
	}
}
